package com.hqj.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import java.lang.Long;
import java.util.Date;
import java.lang.String;
import java.lang.Integer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
 * @author 黄啟军
 * @version 1.0
 * @date 2020/5/16/016
 */
@ApiModel(description = "Blog",value = "Blog")
@TableName(value="blog")
@Data
public class Blog implements Serializable{

	@ApiModelProperty(value = "",required = false)
     @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
	private Long id;
	@ApiModelProperty(value = "用户ID",required = false)
    @Column(name = "user_id")
	private Long userId;
	@ApiModelProperty(value = "标题",required = false)
    @Column(name = "title")
	private String title;
	@ApiModelProperty(value = "描述/简介",required = false)
    @Column(name = "description")
	private String description;
	@ApiModelProperty(value = "创建时间",required = false)
	@JsonFormat(pattern = "yyyy-MM-dd")
    @Column(name = "create_by")
	private Date createBy;
	@ApiModelProperty(value = "状态",required = false)
    @Column(name = "status")
	private Integer status;
	@ApiModelProperty(value = "内容",required = false)
    @Column(name = "content")
	private String content;
	@ApiModelProperty(value = "观看次数",required = false)
    @Column(name = "watch")
	private Integer watch;
	@ApiModelProperty(value = "评论数",required = false)
    @Column(name = "discuss")
	private Integer discuss;
	@ApiModelProperty(value = "点赞数",required = false)
    @Column(name = "likes")
	private Integer likes;
	@ApiModelProperty(value = "封面地址",required = false)
    @Column(name = "cover_url")
	private String coverUrl;
	@ApiModelProperty(value = "0原创1转载",required = false)
    @Column(name = "write_code")
	private String writeCode;
	@ApiModelProperty(value = "0表示未删除1表示已删除",required = false)
    @Column(name = "is_detele")
	private Integer isDetele;
	@ApiModelProperty("分类编号")
	private Long classifyCode;
	@ApiModelProperty("分类名称")
	private String classifyName;
	@ApiModelProperty("标签")
	private String label;
}
